package com.bafa.objects;

import java.io.Serializable;

public class PageBean implements Serializable{

	private String lhs;
	private String mainbody;
	private String mainheader;
	private String pageheader;
	private String id;
	private String event;
	private String stylesheet;
	private boolean postlogon;
	private boolean admin;
	private boolean sendEmail;
	private String emailEvent;
	
        private String logic;
		
		public void addDetails(PageBean bean){
			
			this.lhs=bean.getLhs();
			this.mainbody=bean.getMainbody();
			this.mainheader=bean.getMainheader();
			this.pageheader=bean.getPageheader();
	                this.id=bean.getId();
					this.event=bean.getEvent();
					this.postlogon=bean.isPostlogon();
					this.admin=bean.isAdmin();
					this.sendEmail=bean.isSendEmail();
					this.emailEvent=bean.getEmailEvent();
		}
	public PageBean(PageBean bean) {
		this(bean.getId(),bean.getLhs(),bean.getMainbody(),bean.getMainheader(),bean.getPageheader(),bean.getEvent(),bean.isPostlogon(),bean.isAdmin(), bean.isSendEmail(), bean.getEmailEvent());
	}
	
	public PageBean(String id, String lhs,
					String mainbody,
					String mainheader,
					String pageheader,
					String event,
					boolean postlogon,
					boolean admin, boolean sendEmail, String emailEvent){
		this.lhs=lhs;
		this.mainbody=mainbody;
		this.mainheader=mainheader;
		this.pageheader=pageheader;
                this.id=id;
				this.event=event;
				this.postlogon=postlogon;
				this.admin=admin;
	}
	public String getLhs() {
		return lhs;
	}
	public String getMainbody() {
		return mainbody;
	}
	public String getMainheader() {
		return mainheader;
	}
	public String getPageheader() {
		return pageheader;
	}
	public void setLhs(String lhs) {
		this.lhs = lhs;
	}
	public void setMainbody(String mainbody) {
		this.mainbody = mainbody;
	}
	public void setMainheader(String mainheader) {
		this.mainheader = mainheader;
	}
	public void setPageheader(String pageheader) {
		this.pageheader = pageheader;
	}


    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setLogic(String logic) {
        this.logic = logic;
    }

    public String getLogic() {
        return logic;
    }

	public String getEvent() {
		return event;
	}

	public void setEvent(String event) {
		this.event = event;
	}

	public String getStylesheet() {
		return stylesheet;
	}

	public void setStylesheet(String stylesheet) {
		this.stylesheet = stylesheet;
	}

	public boolean isAdmin() {
		return admin;
	}

	public void setAdmin(boolean admin) {
		this.admin = admin;
	}

	public boolean isPostlogon() {
		return postlogon;
	}

	public void setPostlogon(boolean postlogon) {
		this.postlogon = postlogon;
	}
	public String getEmailEvent() {
		return emailEvent;
	}
	public void setEmailEvent(String emailEvent) {
		this.emailEvent = emailEvent;
	}
	public boolean isSendEmail() {
		return sendEmail;
	}
	public void setSendEmail(boolean sendEmail) {
		this.sendEmail = sendEmail;
	}
}
